import 'package:test1/bean/Person.dart';

class Student extends Person {

  int _grade;
  int _number;

  // 父类的构造函数只能在 initializer list 里调用
  Student(String name, int age, int sex, int grade, int number)
      :_grade = grade,
        _number = number,
        super(name, age, sex);

  int get grade => _grade;

  int get number => _number;

  void set grade(int grade) => this._grade = grade;

  void set number(int number) => this._number = number;

}